<?php
header('Content-Type:text/html;charset=gbk');
require '../../packages/connect_database.php';
mysql_select_db("auction");
$number = $_GET["number"];
mysql_query("UPDATE auction SET offerer = '{$_COOKIE["name"]}',offer = '{$_GET["price"]}',price = '{$_GET["price"]}' WHERE number = {$_GET["number"]} AND title <> ''") or die(mysql_error());
mysql_query("INSERT INTO auction VALUES('','','','','','','','','','','','{$_COOKIE["name"]}','{$_GET["price"]}',{$number})") or die(mysql_error());
echo '';
